<script setup lang="ts">
import { storeToRefs } from 'pinia';

import { link1688stor } from '#/store';

const link1688 = link1688stor();

const { bindGoodsList, useAutoOfferId } = storeToRefs(link1688) as any;
</script>

<template>
  <div>
    <div class="mb-2 text-sm text-red-500">
      * 自动匹配无法做到100%精准，请填充后检查是否正确
    </div>
    <a-radio-group v-model:value="useAutoOfferId">
      <a-space direction="vertical">
        <a-radio
          v-for="item in bindGoodsList"
          :key="item.offerId"
          :value="item.offerId"
        >
          使用 货源{{ item.index }}
        </a-radio>
      </a-space>
    </a-radio-group>
  </div>
</template>
